package com.hive.utils_project;

public class Test {

    public static void main(String[] args) {
        String sql1 = "1   1   active_name_1    2019-06-16  2019-06-18  active_range_1  active_type_1   active_status_1   active_msg_1  shop_id_1   goods_name_1  goods_id_1    goods_name_1    gift_type_1 gift_between_1  gift_value_1  dw_date_1 \n";
        String sql2 = "2   2   active_name_2    2019-06-17  2019-06-19  active_range_2  active_type_2   active_status_2   active_msg_2  shop_id_2   goods_name_2  goods_id_2    goods_name_2    gift_type_2 gift_between_2  gift_value_1  dw_date_2 \n";

        //1.构建流（缓冲流）




        for (int i = 1; i < 1001; i++) {
            StringBuffer sb = new StringBuffer();
            sb.append(i);
            sb.append("\t");

            sb.append(i);
            sb.append("\t");

            sb.append("active_name_").append(i);
            sb.append("\t");

            String line = sb.toString();
            //try
            //2.写入缓

        }

        //3.关闭流

    }

}
